package com.xinjie.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Date;

@Controller // 交给spring
@RequestMapping("/defined")
public class DefinedController {

    @ResponseBody
    @RequestMapping("/definedController")
    public String defined(Date time) {
        System.out.println(time);
        return "success";
    }


}
